﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PhoneApp1.Other
{
    class RandomGenerator
    {
        private int _size;
        public RandomGenerator(int size)
        {
            _size = size;
        }
        private readonly Random _rng = new Random();
        private const string _char = "ABCDEFGHIKLMN";
        private string _value;
        public string Value
        {
            get { return RandomString(); }
        }
        private string RandomString()
        {
            char[] buff = new char[_size];
            for (int i = 0; i < _size; i++)
            {
                buff[i] = _char[_rng.Next(_char.Length)];
            }
            return buff.ToString();
        }
    }
}
